package com.yanyan.sannuomin.result;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS("0","成功"),
    FAIL("201","失败"),
    VALUE_NULL("300","值为空"),
    PARAM_NULL("301","参数为空，处理异常"),
    SIGN_ERROR("400","签名错误"),
    NO_LOGIN("401","未登录"),
    SYS_ERROR("500","系统异常");


    private String code;
    private String massage;

    ResultCode(String code, String massage) {
        this.code = code;
        this.massage = massage;
    }

    public String getResultCode(){
        return code;
    }

    public String getResultMassage(){
        return massage;
    }
}
